#pragma once
#include "CBaseapp.h"
#include "CEffectRenderObj.h"

BEGIN_WARE
class IEffect;
class IEffectProp;
class ISceneNodeTransform;
END_WARE

class CGameScene;

class CEffectApp : public CBaseApp
{
public:
	CEffectApp(void);
	~CEffectApp(void);

	virtual VBOOL			CreateScene();
	virtual VBOOL			UpdateScene( uint32 uCurTime );
	virtual void			ReleaseScene();

	//IEffect*				CreateEmptyEffect();
	IEffect*				CreateEffect( IEffectProp* pEffectProp );
	IEffect*				CreateEffect( VCHAR* szFileName );
	void					ReleaseEffect( IEffect* pEffect );

	void					SaveEffect( const VCHAR* szFileName, IEffect* pEffect );

private:

	uint32					m_uSceneID;
	CEffectRenderObj*		m_pEffectObj;
	CGameScene*				m_pCurGameScene;
};
